package com.example.demo.qrcode;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @Author: zjq
 * @Date: create in 2022/10/8 9:41
 */
@Api(tags = {"二维码生成"})
@RestController
@RequestMapping("/qr")
public class QRController {

    @Autowired
    private QrService qrService;

    @ApiOperation(value = "生成二维码图片")
    @PostMapping(value = "/testutil")
    public void createQrCode()  {
        qrService.createQrCode(2);
    }

}
